function dropshadow(tag,dsclass,inner){
	// collect all the required tags
	var divs = document.getElementsByTagName(tag);
	// loop through them
	for(i=0;i<divs.length;i++){
		// detect the class on the tag
		if(divs[i].className == dsclass){
			// shadow intro
			temp = "<div class=\"ds-outer\"><div class=\"ds-tl\"><\/div><div class=\"ds-tr\"><\/div><div class=\"ds-mm\"><div class=\"ds-tm\"><\/div><div class=\"ds-ml\"><div class=\"ds-mr\">";
			// add the new inner object and class
			temp += "<" + tag + " class=\"" + inner + "\">";
			// include the contents of the object
			temp += divs[i].innerHTML;
			// shadow outro
			temp += "<\/" + tag + "><\/div><\/div><div class=\"ds-bm\"><\/div><\/div><div class=\"ds-bl\"><\/div><div class=\"ds-br\"><\/div><\/div>";
			// rewrite the object
			divs[i].innerHTML = temp;
			// required styles
			divs[i].style.position = "relative";
			divs[i].style.display = "block";
			// empty the variable
			temp = "";
		}
	}
	//add the stylesheet
	var css=document.createElement("link");
	css.setAttribute("rel", "stylesheet");
	css.setAttribute("type", "text/css");
	css.setAttribute("href", "http://dropshadows.googlecode.com/svn/trunk/dropshadows.css");
	document.getElementsByTagName("head")[0].appendChild(css);
}